import _fetch from './request'
function getQuestionList (params) {
  return _fetch({
    url: '/question/list',
    method: 'get',
    params
  })
}
function addQuestion (data) {
  return _fetch({
    url: '/question/add',
    method: 'post',
    data
  })
}
function editQuestion (data) {
  return _fetch({
    url: '/question/edit',
    method: 'post',
    data
  })
}
function removeQuestion (data) {
  return _fetch({
    url: '/question/remove',
    method: 'post',
    data
  })
}
function setQuestionStatus (data) {
  return _fetch({
    url: '/question/status',
    method: 'post',
    data
  })
}
export {
  getQuestionList,
  addQuestion,
  editQuestion,
  removeQuestion,
  setQuestionStatus
}
